﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.ThingsWeb.Buyer
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string Account= strid;
					ShowInfo(Account);
				}
			}
		}
		
	private void ShowInfo(string Account)
	{
		Things.BLL.Buyer bll=new Things.BLL.Buyer();
		Things.Model.Buyer model=bll.GetModel(Account);
		this.lblAccount.Text=model.Account;
		this.lblPassword.Text=model.Password;
		this.lblIsDisabled.Text=model.IsDisabled?"是":"否";
		this.lblCreatedDate.Text=model.CreatedDate.ToString();

	}


    }
}
